import { http } from "../http"

export const deviceDataService = {
    getDayDataService: (device_id) => {
        return http({
            method: "GET",
            url: '/device_data/get_day_data',
            params: {
                device_id: device_id
            }
        })
    },
    getWeekDataService: (device_id) => {
        return http({
            method: "GET",
            url: '/device_data/get_week_data',
            params: {
                device_id: device_id
            }
        })
    },
    getMonthDataService: (device_id) => {
        return http({
            method: "GET",
            url: '/device_data/get_month_data',
            params: {
                device_id: device_id
            }
        })
    },
}